package com.base.service.impl;

import com.base.mapper.voipmapper.ServiceCallMapper;
import com.base.po.voip.ServiceCall;
import com.base.po.voip.ServiceCallExample;
import com.base.service.ServiceCallService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ServiceCall")
public class ServiceCallServiceImpl implements ServiceCallService {
    @Autowired
    ServiceCallMapper serviceCallMapper;
    @Override
    public int countByExample(ServiceCallExample example) {
        return serviceCallMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ServiceCallExample example) {
        return serviceCallMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return serviceCallMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ServiceCall record) {
        return serviceCallMapper.insert(record);
    }

    @Override
    public int insertSelective(ServiceCall record) {
        return serviceCallMapper.insertSelective(record);
    }

    @Override
    public List<ServiceCall> selectByExample(ServiceCallExample example) {
        return serviceCallMapper.selectByExample(example);
    }

    @Override
    public ServiceCall selectByPrimaryKey(Integer id) {
        return serviceCallMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ServiceCall record, ServiceCallExample example) {
        return serviceCallMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(ServiceCall record, ServiceCallExample example) {
        return serviceCallMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(ServiceCall record) {
        return serviceCallMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ServiceCall record) {
        return serviceCallMapper.updateByPrimaryKey(record);
    }

    @Override
    public String selectByPrefix(String fwqIp) {
        return serviceCallMapper.selectByPrefix(fwqIp);
    }

    @Override
    public int countAll() {
        return serviceCallMapper.countAll();
    }

    @Override
    public List<ServiceCall> selectAll(Page page) {
        return serviceCallMapper.selectAll(page);
    }
}
